<?php
include_once('include.php');

 
if($_GET["id"]!=''){

    $conn -> query("update qw_domain set status=1 where id=".$_GET["id"]);
 
	exit;
}

 if($_GET["fuhuo"]=='ok'){

    $conn -> query("update qw_domain set status=0");
 
	exit;
}


 $temp = $conn -> getRows($conn -> query("select * from qw_domain"));
 
if($temp!=''){
  
  foreach($temp as $k => $val){
 echo  "[id:'". $val['id']."',"."url:'". trim($val['show_domain'])."']"."\r\n";

 
 
 }
 
 
 
 
 
 
 }
 
?>
